import axios from 'axios'

const api = axios.create({
    baseURL: 'http://cnodejs.org',
    timeout: 5001, // 请求地址
})


export const getList = (id) => api.get('/api/v1/topics', {
    params: {
        tab: id
    }
})

export const getDetails = (id) => api.get('/api/v1/topic/' + id, )